package com.canis.stockmanager.comm;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

public class Const {

    public static String BASE_PATH="http://127.0.0.1:8080/";

    public static String LOGIN_SESSION_KEY = "stock_manager_user";

    public static String PASSWORD_KEY = "&*^%$@)(*hy%$&JK(*&^";

    public static String DES3_KEY = "897HJY678GYUK9876897HfTl";

    public static String default_logo="img/logo.jpg";

    public static String userAgent="Mozilla";

    public static String default_Profile=BASE_PATH+"/img/logo.jpg";

    public static String LAST_REFERER = "LAST_REFERER";

    public static int COOKIE_TIMEOUT= 30*24*60*60;


    @Autowired(required = true)
    public void setBasePath(@Value("${stock.base.path}")String basePath) {
        Const.BASE_PATH = basePath;
    }


}
